<%@ page pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="<%=request.getContextPath()%>"/>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CAFE-ADMIN</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/page/css/login.css">
    <script type="text/javascript" src="${ctx}/page/js/jquery.min.js"></script>
    <script type="text/javascript">
        $(function(){
            $(".name input").focus(function(){
                $(this).prev("i").css({"background-image":"url(${ctx}/page/images/user2.png)"});
            });
            $(".name input").blur(function(){
                $(this).prev("i").css({"background-image":"url(${ctx}/page/images/user1.png)"});
            });
            $(".password input").focus(function(){
                $(this).prev("i").css({"background-image":"url(${ctx}/page/images/password2.png)"});
            });
            $(".password input").blur(function(){
                $(this).prev("i").css({"background-image":"url(${ctx}/page/images/password1.png)"});
            });
        });
    </script>
</head>
<body>
    <div class="container">
        <div class="wrap">
            <header><em>CAFE - ADMIN</em><span></span></header>
            <article>
                <section>
                    <aside>
                        <em>
                            <img src="${ctx}/page/images/user3.png">
                        </em>
                         <form  action="${ctx}/dologin" method="post">
                            <p class="name"><i></i><input type="text" name="j_username" class="userName" placeholder="请输入用户名"></p>
                            <p class="password"><i></i><input type="password" name="j_password" class="pwd" placeholder="请输入密码"></p>
                            <button type="submit">登录</button>
                            <div class="clear"></div>
                        </form>
                    </aside>
                   <div style='<c:if test="${_loginErrorMsg==null}"> display: none; </c:if>'>
									<button class="close" data-dismiss="alert"></button>
									<strong>${_loginErrorMsg}</strong>
					</div>
                </section>               
            </article>
            <!-- <footer>
                <ul>
                    <li><a href="#">联系我们</a></li>
                    <li><a href="#">关于我们</a></li>
                    <li><a href="#">人才招聘</a></li>
                    <li><a href="#">友情链接</a></li>
                    <li><a href="#">公司地址</a></li>
                    <li><a href="#">关注我们</a></li>
                </ul>
                <p>本网站版权归╳╳╳技术有限公司所有，未经许可，不得转载。</p>
            </footer> -->
        </div>
    </div>
</body>
</html>
